﻿@model SimilarPageViewModel
<div class="modal fade" id="@Model.HtmlIdPrefix-upload" role="dialog">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h2 class="modal-title">@Model.Title</h2>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-md-12">
                        <form>
                            <fieldset>
                                <div class="form-group">
                                    <label class="radio-inline" for="@Model.HtmlIdPrefix-upload-append-update">
                                        <input type="radio" name="type" id="@Model.HtmlIdPrefix-upload-append-update" value="@Home.Services.ProductService.ProductUploadType.AppendOrUpdate"> 添加或修改
                                    </label>
                                    <label class="radio-inline" for="@Model.HtmlIdPrefix-upload-replace">
                                        <input type="radio" name="type" id="@Model.HtmlIdPrefix-upload-replace" value="@Home.Services.ProductService.ProductUploadType.Replace"> 替换
                                    </label>
                                </div>
                            </fieldset>
                        </form>
                        <ul>
                            <li><strong>添加或修改：</strong>如果序号已存在，则执行<strong>修改</strong>操作；反之，执行<strong>添加</strong>操作。</li>
                            <li><strong>替换：</strong>所有已有数据会被删除，并被新的数据完全覆盖。</li>
                            <li>无论采用添加、替换或者修改方式，都可以一次上传多条数据。</li>
                        </ul>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary btn-sm" id="@Model.HtmlIdPrefix-upload-upload"><span class="glyphicon glyphicon-upload" aria-hidden="true"></span> 上传</button>
                <button type="button" class="btn btn-default btn-sm" data-dismiss="modal">关闭</button>
            </div>
        </div>
    </div>
</div>